package com.xyf.sys.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
@ApiModel
public class UserAddress {
    private Long id;

    private String userId;

    private Long deptId;

    private String name;

    private String mobile;

    private String company;

    private String province;

    private String city;

    private String area;

    private String town;

    private String address;

    private String code;

    private String realId;

    private String realName;

    private String idCardUrl;

    @ApiModelProperty(name = "type", value = "类型 1 寄件 2 收件")
    private Integer type;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastUpdateTime;

    private Integer isDefault;

    private String status;

    private String delFlag;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private String remark;

    private String text;

    private String deliveryId;

    public String getName() {
        return name == null ? null : name.trim().replaceAll("\n", "");
    }
}